﻿<!DOCTYPE html>
<html lang="en">
<body>
    <script type="text/javascript">
        let number = new Number(3.1415926);
        document.write("原数值为：" + number);
        document.write("<br>");
        document.write("保留两位小数的数值为：" + number.toFixed(2))
    </script>
</body>
</html>

